function parseColor(color, fcolor) {
    var fcolor = fcolor || new Float32Array([0, 0, 0, 1]);
    var values = [];
    var start = 0;
    while (start < color.length) {
        values.push(parseInt(color.substring(start, start + 2), 16) / 255);
        start += 2;
    }
    fcolor.set(values);
    return fcolor;
}

exports.parseColor = parseColor;